# decorators.py
import functools

class Logger:
    def __init__(self, logger_name='my_logger'):
        self.logger_name = logger_name

    def __call__(self, func):
        @functools.wraps(func)
        def wrapped(*args, **kwargs):
            print(f"开始执行方法: ========={func.__name__}=========")
            result = func(*args, **kwargs)
            return result
        return wrapped
